
const preventReClick = {
    inserted: function (el, binding) {
        el.addEventListener('click', () => {
            console.log(el.disabled,'123');
            if (!el.disabled) {
                el.disabled = true
                setTimeout(() => {
                    el.disabled = false
                }, binding.value || 1500)
                // 不设置默认则为1500
            }
        })
    },
}

export default preventReClick